﻿using System;
using System.Windows.Forms;
using System.Reflection;
using ebDoc = eRechnung_3_0.Globals;


namespace eRechnung_3_0
{
    // SVN Info
    // LastChangedRevision  $LastChangedRevision: 61 $
    // LastChangedDate      $LastChangedDate: 2009-11-06 12:31:31 +0100 (Fri, 06 Nov 2009) $
    // HeadURL              $HeadURL: svn://bpcsrv/ebInterface/eRechnung%203.0/trunk/eRechnung%203.0/eRechnung%203.0/eRechung_Ribbon.cs $
    // Revision             $Revision: 61 $
    // Author               $Author: jbogad $
    // Date                 $Date: 2009-11-06 12:31:31 +0100 (Fri, 06 Nov 2009) $
    // LastChangedBy        $LastChangedBy: jbogad $
    // ID                   $Id: eRechung_Ribbon.cs 61 2009-11-06 11:31:31Z jbogad $
    // Header               $Header: svn://bpcsrv/ebInterface/eRechnung%203.0/trunk/eRechnung%203.0/eRechnung%203.0/ThisDocument.cs 60 2009-11-06 10:17:03Z jbogad $

    /// <summary>
    /// About Formular
    /// </summary>
    public partial class AboutForm : Form
    {
        public AboutForm()
        {

            InitializeComponent();
            //string info = string.Empty;
            //Assembly asm = Assembly.GetExecutingAssembly();
            ////info = asm.FullName;
            string svnInfo = string.Empty;
            //object[] attributes = Assembly.GetExecutingAssembly().GetCustomAttributes(typeof(AssemblyDescriptionAttribute), true);
            //if (attributes.Length > 0)
            //{
            //    AssemblyDescriptionAttribute descriptionAttribute = attributes[0] as AssemblyDescriptionAttribute;
            //    svnInfo = descriptionAttribute.Description;

            //}
            svnInfo = ebDoc.ThisDocument.GetSVNInfo();
            this.lblVersion.Text = svnInfo;
        }

        private void btnOK_Click(object sender, EventArgs e)
        {
            this.Close();
        }

        private void linkLabel2_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
        {
            System.Diagnostics.Process.Start(this.linkLabel2.Text);
        }

        private void linkLabel1_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
        {
            System.Diagnostics.Process.Start(this.linkLabel1.Text);
        }

    }
}
